﻿namespace Titan.FIS.LmsDataSync
{
    public class Common
    {
        /// <summary>
        /// 当前操作数据库的用户名
        /// </summary>
        public static string UserName { set; get; }

        /// <summary>
        /// 当前操作数据库的用户密码
        /// </summary>
        public static string UserPwd { set; get; }
    }

    /// <summary>
    /// 自定义listItem类，用来存储相关信息
    /// </summary>
    public class ListItem
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="sname"></param>
        /// <param name="svalue1"></param>
        /// <param name="svalue2"></param>
        /// <param name="svalue3"></param>
        public ListItem(string sname, string svalue1, string svalue2, string svalue3)
        {
            Name = sname;
            Value1 = svalue1;
            Value2 = svalue2;
            Value3 = svalue3;
        }

        /// <summary>
        /// 将本类转成字符串，默认为本类的名称
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return Name;
        }

        /// <summary>
        /// 值1
        /// </summary>
        public string Value1 { get; set; }

        /// <summary>
        /// 值2
        /// </summary>
        public string Value2 { get; set; }

        /// <summary>
        /// 值3
        /// </summary>
        public string Value3 { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
    }
}
